package com.ruoyi.common.core.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.domain.vo.RefundAvailabilityVO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * @Author itmei
 * @Date 2024/4/30 9:27
 * @description: 提交请假请求
 * @Title: submitLeaveDTO
 * @Package com.ruoyi.common.core.domain.dto
 */
@Data
public class submitLeaveDTO {
    private Long id;
    //学生id
    private String studentId;

    //学生姓名
    private String studentName;

    //学生性别
    private String studentsSex;

    //年级名称
    private String gradesName;

    //班级名称
    private String classesName;

    //监护人姓名(家长)
    private String nickName;

    //监护人id(家长)
    private Long userId;

    //学校id
    private Long schoolId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotBlank(message = "请假开始时间不能为空")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotBlank(message = "请假结束时间不能为空")
    private Date endTime;

    /** 请假类型ID */
    private Long leaveTypeId;

    /** 请假原因 */
    @NotBlank(message = "请假原因不能为空")
    private String reason;

    //退款的早中晚餐
    private List<RefundAvailabilityDTO> refundAvailabilityVOS;

    @Excel(name = "账户ID，")
    private Long accountId;
    /** 银行卡号 */
    @Excel(name = "银行卡号")
    private String bankNumber;
    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;
    /** 姓名 */
    @Excel(name = "姓名")
    private String name;
}
